package sixkey.listener;

/**
 * ClassName:EventPublistener
 * Package:sixkey.listener
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/7/13 - 2:13
 * @Version:v1.0
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
import sixkey.domain.entity.Log;

/**
 * 事件发布者
 */
@Component
public class EventPublistener {

    @Autowired
    private ApplicationContext applicationContext;

    //发布事件
    public void publishEvent(Log log){
        applicationContext.publishEvent(log);
    }
}
